package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.ClocktimeBeanMapper;
import com.billing.model.entity.TClocktime;
import com.billing.service.ClocktimeService;
@Service
public class ClocktimeServiceImpl implements ClocktimeService {

	
	@Resource
	private ClocktimeBeanMapper clocktimeBeanMapper;
	
	public int insertTClocktimeList(List<TClocktime> clolist) {
		return clocktimeBeanMapper.insertTClocktimeList(clolist);
	}

	@Override
	public List<TClocktime> getTClocktimeByTime(Long starttime, Long endtime,
			int schedulingid) {
		return clocktimeBeanMapper.getTClocktimeByTime(starttime, endtime, schedulingid);
	}

	@Override
	public int deleteTClocktime(int id, int year) {
		return clocktimeBeanMapper.deleteTClocktime(id, year);
	}

	@Override
	public int deleteTClocktimeList(List<Integer> list) {
		return clocktimeBeanMapper.deleteTClocktimeList(list);
	}

}
